package com.zrz.controller;

import com.zrz.model.auto.Banner;
import com.zrz.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/image")
public class ImageController {
    @Autowired
    private ImageService imageService;
    @RequestMapping("/url")
    public List<Banner> getImageUrl(Integer houseId, Integer type){
        return imageService.imageUrl(houseId,type);
    }
}
